import BasicLayout from '@components/layouts/BasicLayout.vue';
import RouteView from '@components/layouts/RouteView.vue';

export const baseRouter=[
    {
        path:'/login',
        name:'login',
        component:()=>import('../views/user/login.vue')
    },
    {
        path: '/404',
        name:'404',
        component: () => import('../views/404')
    }
]
export const asyncRouterMap=[
    {
        path:'/',
        name:'index',
        component:BasicLayout,
        meta:{title:'首页'},
        redirect:'/desk/desktop',
        children:[
            {
                path:'/desk',
                name:'desk',
                component:RouteView,
                redirect:'/desk/desktop',
                meta:{ title:"工作台",keepAlive:true,icon:"menu",permission:['desk']},
                children:[{
                        path:'/desk/desktop',
                        name:'desktop',
                        component:()=>import('@/views/desk/desktop.vue'),
                        meta:{ title:"工作台",keepAlive:true,icon:"menu",permission:['desk']}
                    },
                    
                ]
            }
        ]
    }
]